package com.example.mallsystem1104.annotation;

import com.example.mallsystem1104.entity.AuthorityType;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Author zy
 * @Date 2024/12/10 15:24
 * @packageName:com.example.mallsystem1104.annotation
 * @ClassName:Authority
 */
//保留注解到项目运行时
@Retention(RetentionPolicy.RUNTIME)
//注解运用到方法和类上
@Target({ElementType.TYPE,ElementType.METHOD})
public @interface Authority {
    AuthorityType value() default AuthorityType.requireLogin;
}
